import request from '@/utils/request'

// 查询成药处方列表
export function listMedicinePrescriptionRecord(query) {
  return request({
    url: '/dms/medicinePrescriptionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询成药处方详细
export function getMedicinePrescriptionRecord(id) {
  return request({
    url: '/dms/medicinePrescriptionRecord/' + id,
    method: 'get'
  })
}

// 新增成药处方
export function addMedicinePrescriptionRecord(data) {
  return request({
    url: '/dms/medicinePrescriptionRecord',
    method: 'post',
    data: data
  })
}

// 修改成药处方
export function updateMedicinePrescriptionRecord(data) {
  return request({
    url: '/dms/medicinePrescriptionRecord',
    method: 'put',
    data: data
  })
}

// 删除成药处方
export function delMedicinePrescriptionRecord(id) {
  return request({
    url: '/dms/medicinePrescriptionRecord/' + id,
    method: 'delete'
  })
}
